//
//  UIButton+InitButton.m
//  UI09_ContactBookSample
//
//  Created by lizhongren on 15/9/27.
//  Copyright (c) 2015年 lizhongren. All rights reserved.
//

#import "UIButton+InitButton.h"

@implementation UIButton (InitButton)


+ (instancetype)buttonWithFrame:(CGRect)frame title:(NSString *)title target:(id)target action:(SEL)action color:(UIColor *)color
{
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    
    [button setTitle:title forState:UIControlStateNormal];
    button.frame = frame;
    
    [button addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    button.backgroundColor = color;
    return button;
}












@end
